package com.dianshan.service;

import com.dianshan.entity.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dianshan.entity.dto.AddressDto;
import com.domain.PageQuery;
import com.domain.PageResult;
import com.domain.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaolong
 * @since 2024-06-18
 */
public interface IAddressService extends IService<Address> {

    /**
     * 分页查询
     * @param
     * @return Address
     **/
   PageResult<Address> listOne(PageQuery pageQuery);

   AddressDto updateAddress(Address address);

   void deleteAddress(Long id);

   void appendAddress(Address address);

   AddressDto selectAddress(Long id);

   void setDefault(Address address);

}
